#include<stdio.h>  
  
int main(void)  
{  
    int a,b,n=1;  
    scanf("%d%d",&a,&b);  
    while( (n%a!=0) || (n%b!=0))  
    {  
        n++;  
    }  
    printf("%d\n",n);  
    return 0;  
}
